package service.impl;

import service.ProductService;

/**
 * 商品服务实现
 */
public class ProductServiceImpl implements ProductService {
    @Override
    public void addProduct(String productName) {
        System.out.println("添加商品: " + productName);
        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
    
    @Override
    public void deleteProduct(String productName) {
        System.out.println("删除商品: " + productName);
        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
    
    @Override
    public String getProduct(String productName) {
        System.out.println("查询商品: " + productName);
        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
        return "商品信息: " + productName;
    }
}